<!-- 综合查询-决算 -->
<template>
  <div>
    <!--
      1.['A', 'B', 'D', 'G', 'Z'], // A = 铁塔类项目, B = 室分类项目, C = 传输类项目, G = 微姑类项目, Z = 整体项目 ||
      2.M =信息化
    -->
    <ActualBudgetDetail v-if="prjType == 'M'" />
    <TFinInfoForm v-if="commonPrjTypes.includes(prjType) " />
  </div>
</template>
<script>

    import ActualBudgetDetail from '@/views/actualBudget/actualBudgetDetail' // 信息化类决算页面
    import TFinInfoForm from '@/views/actualBudget/communication/tFinInfoForm' // 通信类决算页面

    import { getQueryObject, setDocTitle } from '@/utils' // 获取url地址信息
    import {
      getPrjDetail
    } from '@/api/actualBudget/tFbusiness'

    // import { setToken10 } from '@/utils/auth'
    export default {
      name: 'IntegratedQueryActualBudget',
      components: {
        ActualBudgetDetail,
        TFinInfoForm
      },
      data() {
        return {
          urlList: {},
          prjType: '',
          commonPrjTypes:['A', 'B', 'D', 'G', 'Z','W','T','Q','Y','J','F','L']
        }
      },
      created() {
        const { prjId, type, processInstId } = getQueryObject()
        this.urlList = {
          prjId,
          type,
          processInstId
        }
        this.getPrjDetailFun()
      },
      methods: {
        // 获取 基本信息
        async getPrjDetailFun() {
          await getPrjDetail({ prjId: this.urlList.prjId }).then(res => {
              this.basicList = res.data // 获取基本信息
              this.prjType = this.basicList.prjType
          })
        }
      }
    }
</script>

<style>
</style>

